package com.buss.check.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.buss.check.dic.CheckObj;
import com.buss.core.dic.CheckStatus;


@Entity
@Table(name="check_audit")
@TableGenerator(name="checklog_pk_sequence",initialValue=1,allocationSize=1,pkColumnName="seq_col",
pkColumnValue="checklog_seq",valueColumnName="seq_val",table="core_pk_sequence")
public class CheckLog implements Serializable{

	private static final long serialVersionUID = 6199917719205831674L;

	/**审核日志主键*/
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="checklog_pk_sequence")
	private Long id;
	
	/**审核对象**/
	@Column(nullable=false,length=20)
	@Enumerated(value=EnumType.STRING)
	private CheckObj checkObj;
	
	/**审核人编码*/
	@Column(nullable=false)
	private Long checkUserId;
	
	/**审核人名称*/
	@Column(nullable=false,length=20)
	private String checkUserName;
	
	/**审核状态*/
	@Column(nullable=false)
	@Enumerated(value=EnumType.STRING)
	private CheckStatus status; 
	
	/**审核时间*/
	@Temporal(TemporalType.TIMESTAMP)
	private Date checkTime;
	
	/**审核说明*/
	@Column(length=254)
	private String intro;
	
	/**审核步骤*/
	@Column(nullable=false)
	private long checkFlow;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public CheckObj getCheckObj() {
		return checkObj;
	}

	public void setCheckObj(CheckObj checkObj) {
		this.checkObj = checkObj;
	}

	public Long getCheckUserId() {
		return checkUserId;
	}

	public void setCheckUserId(Long checkUserId) {
		this.checkUserId = checkUserId;
	}

	public String getCheckUserName() {
		return checkUserName;
	}

	public void setCheckUserName(String checkUserName) {
		this.checkUserName = checkUserName;
	}

	public CheckStatus getStatus() {
		return status;
	}

	public void setStatus(CheckStatus status) {
		this.status = status;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public long getCheckFlow() {
		return checkFlow;
	}

	public void setCheckFlow(long checkFlow) {
		this.checkFlow = checkFlow;
	}


	
	
}
